<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/statics/css/fenye.css}" type="text/css" rel="stylesheet">
    <script th:src="@{/statics/js/index.js}" type="text/javascript"></script>
</head>
<body>
<div class="table">
    <div class="fenye" th:object="${page1}">
        <div>
            <input type="hidden" id="totalPage" th:value="*{totalPage}">
            <table >
                <tr>
                    <th>序号</th>
                    <th>用户编码</th>
                    <th>用户名</th>
                    <th>pm10</th>
                    <th>pm25</th>
                    <th>操作</th>
                </tr>
                <tr th:each="quality:*{data}">
                    <td th:text="${quality.id}"></td>
                    <td th:text="${quality.districtId}"></td>
                    <td th:text="${quality.name}"></td>
                    <td th:text="${quality.pm10}"></td>
                    <td th:text="${quality.pm25}"></td>
                    <td>
                        <a href="#">查看</a>
                        <a href="#">修改</a>
                        <a href="#">删除</a>
                    </td>
                </tr>
            </table>
            <nav class="selectPage" th:if="*{totalPage>0}">
                <div>
                    当前<span th:text="*{currentPageNo}"></span>页,
                    共<span th:text="*{totalPage}"></span>页,
                    共<span th:text="*{totalConut}"></span>条记录,
                    <span th:if="*{currentPageNo>1}">
                     <a href="/kongqi/kongqi1?currentPageNo=1">首页</a>
                    <a th:href="@{'/kongqi/kongqi1?currentPageNo='+*{currentPageNo - 1}}">上一页</a>
                </span>
                    <span th:if="*{currentPageNo<totalPage}">
                    <a th:href="@{'/kongqi/kongqi1?currentPageNo='+*{currentPageNo + 1}}">下一页</a>
                    <a th:href="@{'/kongqi/kongqi1?currentPageNo='+*{totalPage}}">尾页</a>
                </span>
                    <span>
                        <input type="button" value="go" onclick="go()">
                        <input type="text" name="count" id="go">页
                    </span>
                </div>
            </nav>
        </div>

    </div>

</div>
</body>
</html>